
package net.waste.ics.item;

import net.waste.ics.itemgroup.WasteItemsItemGroup;
import net.waste.ics.IcsModElements;

import net.minecraftforge.registries.ObjectHolder;

import net.minecraft.world.World;
import net.minecraft.util.text.StringTextComponent;
import net.minecraft.util.text.ITextComponent;
import net.minecraft.item.Rarity;
import net.minecraft.item.ItemStack;
import net.minecraft.item.Item;
import net.minecraft.client.util.ITooltipFlag;
import net.minecraft.block.BlockState;

import java.util.List;

@IcsModElements.ModElement.Tag
public class LavabucketdiItem extends IcsModElements.ModElement {
	@ObjectHolder("ics:lavabucketdi")
	public static final Item block = null;

	public LavabucketdiItem(IcsModElements instance) {
		super(instance, 39);
	}

	@Override
	public void initElements() {
		elements.items.add(() -> new ItemCustom());
	}

	public static class ItemCustom extends Item {
		public ItemCustom() {
			super(new Item.Properties().group(WasteItemsItemGroup.tab).maxStackSize(1).rarity(Rarity.COMMON));
			setRegistryName("lavabucketdi");
		}

		@Override
		public int getItemEnchantability() {
			return 0;
		}

		@Override
		public float getDestroySpeed(ItemStack par1ItemStack, BlockState par2Block) {
			return 1F;
		}

		@Override
		public void addInformation(ItemStack itemstack, World world, List<ITextComponent> list, ITooltipFlag flag) {
			super.addInformation(itemstack, world, list, flag);
			list.add(new StringTextComponent("\u53D8\u5356\u7269\uFF1A\u4EF7\u503C300DiCoin"));
			list.add(new StringTextComponent("\u5CA9\u6D46\u6876\uFF0C\u4E0D\u53EF\u98DF\u7528"));
			list.add(new StringTextComponent("\u201C\u4F60\u5854\u59C6\u554A\uFF0C\u5403\u8FD9\u73A9\u610F\u201D"));
		}
	}
}
